using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Content.Pipeline.Graphics;

namespace XDLPipeline
{
    /// <summary>
    /// Imports a particle definition as a content asset.
    /// </summary>
    [ContentImporter(".particle", DisplayName = "XML Particle Importer", DefaultProcessor = "ParticleProcessor")]
    public class ParticleImport : ContentImporter<ParticleSettingsContent>
    {
        public override ParticleSettingsContent Import(string filename, ContentImporterContext context)
        {
            XmlImporter xi = new XmlImporter();   
            return (ParticleSettingsContent)xi.Import(filename, context);
        }
    }
}
